﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pedido.aspx.cs" Inherits="AppPizza.Pedido" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Página sin título</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <asp:Label ID="lblTelefono" runat="server" Text="Telefono :"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btoConsultar" runat="server" Text="Consultar" />
    
    </div>
    <p>
        &nbsp;</p>
    <p>
&nbsp;<asp:Label ID="lblNombre" runat="server" Text="Nombre :"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="Apellido"></asp:Label>
&nbsp;&nbsp;
        <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
    </p>
    <p>
&nbsp;&nbsp;&nbsp;
        <asp:Label ID="lblDireccion" runat="server" Text="Direccion :"></asp:Label>
&nbsp;&nbsp;
        <asp:TextBox ID="TextBox3" runat="server" Height="16px" Width="121px"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label2" runat="server" Text="Email :"></asp:Label>
&nbsp;
        <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="Label3" runat="server" Text="Pizza"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label4" runat="server" Text="Tamaño"></asp:Label>
        <asp:DropDownList ID="ddlTamano" runat="server" 
            DataSourceID="SqlDataSourceTamano" DataTextField="TamaÃ±o" 
            DataValueField="Precio">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSourceTamano" runat="server" 
            ConnectionString="<%$ ConnectionStrings:pizzeriaConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:pizzeriaConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM tamaño_pizza"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Label ID="Label5" runat="server" Text="Tipo de Masa"></asp:Label>
        <asp:DropDownList ID="ddlMasa" runat="server" DataSourceID="SqlDataSource2" 
            DataTextField="Masa" DataValueField="Precio">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:pizzeriaConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:pizzeriaConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM tipo_masa"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Label ID="Label6" runat="server" Text="Ingrediente 1"></asp:Label>
        <asp:DropDownList ID="ddlIngrediente1" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="Precio">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
            ConnectionString="<%$ ConnectionStrings:pizzeriaConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:pizzeriaConnectionString.ProviderName %>" 
            SelectCommand="SELECT * from ingrediente"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Label ID="Label7" runat="server" Text="Ingrediente 2"></asp:Label>
        <asp:DropDownList ID="ddlIngrediente2" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="Precio">
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="Label8" runat="server" Text="Ingrediente 3"></asp:Label>
        <asp:DropDownList ID="ddlIngrediente3" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="Precio">
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="Label9" runat="server" Text="Ingrediente 4"></asp:Label>
        <asp:DropDownList ID="ddlIngrediente4" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="Precio">
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="Label10" runat="server" Text="Ingrediente 5"></asp:Label>
        <asp:DropDownList ID="ddlIngrediente5" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="Precio">
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="Label11" runat="server" Text="Ingrediente 6"></asp:Label>
        <asp:DropDownList ID="ddlIngrediente6" runat="server" 
            DataSourceID="SqlDataSource1" DataTextField="Nombre" DataValueField="Precio">
        </asp:DropDownList>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="Label12" runat="server" Text="Entrada"></asp:Label>
&nbsp;<asp:DropDownList ID="DropDownList1" runat="server" 
            DataSourceID="SqlDataSourceEntrada" DataTextField="Nombre" 
            DataValueField="Precio">
        </asp:DropDownList>
        <asp:SqlDataSource ID="SqlDataSourceEntrada" runat="server" 
            ConnectionString="<%$ ConnectionStrings:pizzeriaConnectionString %>" 
            ProviderName="<%$ ConnectionStrings:pizzeriaConnectionString.ProviderName %>" 
            SelectCommand="SELECT * FROM entrada"></asp:SqlDataSource>
    </p>
    <p>
        <asp:Label ID="Label13" runat="server" Text="Bebida"></asp:Label>
        <asp:DropDownList ID="DropDownList2" runat="server">
        </asp:DropDownList>
    </p>
    <p>
        <asp:Label ID="Label14" runat="server" Text="Postre"></asp:Label>
        <asp:DropDownList ID="DropDownList3" runat="server">
        </asp:DropDownList>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Label ID="Label15" runat="server" Text="RESUMEN COMPRA"></asp:Label>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
            Text="Calcular" />
    </p>
    <p>
        <asp:Label ID="Label16" runat="server" Text="Entrada:"></asp:Label>
        <asp:Label ID="lblEntradaVal" runat="server" Text="0"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label18" runat="server" Text="Bebida:"></asp:Label>
        <asp:Label ID="lblBebidaVal" runat="server" Text="0"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label20" runat="server" Text="Postre:"></asp:Label>
        <asp:Label ID="lblPostreVal" runat="server" Text="0"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label22" runat="server" Text="Pizza:"></asp:Label>
        <asp:Label ID="lblPizzaVal" runat="server" Text="0"></asp:Label>
    </p>
    <p>
        <asp:Label ID="Label24" runat="server" Text="TOTAL:"></asp:Label>
        <asp:Label ID="lblTotalVal" runat="server" Text="0"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <p>
&nbsp;&nbsp;
    </p>
    </form>
</body>
</html>
